using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SimpleFactory.SimpleFactory
{
    [TestClass]
    public class StaticFactoryClient
    {
        [TestMethod]
        public void Test()
        {
            IProduct product = StaticFactory.Create(Category.B);
            Assert.IsNotNull(product);
            Assert.AreEqual<Type>(product.GetType(), typeof(ConcreteProductB));
        }
    }
}